package com.eshop.modules.shop.service.dto;

import com.eshop.annotation.Query;

public class MaterialQueryCriteria
{
    @Query
    private String groupId;
    
    public String getGroupId() {
        return this.groupId;
    }
    
    public void setGroupId(final String groupId) {
        this.groupId = groupId;
    }
    
    @Override
    public boolean equals(final Object o) {
        if (o == this) {
            return true;
        }
        if (!(o instanceof MaterialQueryCriteria)) {
            return false;
        }
        final MaterialQueryCriteria other = (MaterialQueryCriteria)o;
        if (!other.canEqual(this)) {
            return false;
        }
        final Object this$groupId = this.getGroupId();
        final Object other$groupId = other.getGroupId();
        if (this$groupId == null) {
            if (other$groupId == null) {
                return true;
            }
        }
        else if (this$groupId.equals(other$groupId)) {
            return true;
        }
        return false;
    }
    
    protected boolean canEqual(final Object other) {
        return other instanceof MaterialQueryCriteria;
    }
    
    @Override
    public int hashCode() {
        final int PRIME = 59;
        int result = 1;
        final Object $groupId = this.getGroupId();
        result = result * 59 + (($groupId == null) ? 43 : $groupId.hashCode());
        return result;
    }
    
    @Override
    public String toString() {
        return "MaterialQueryCriteria(groupId=" + this.getGroupId() + ")";
    }
}
